package com.itheima.dao.impl;

import com.itheima.dao.EquipmentDao;
import org.springframework.beans.factory.InitializingBean;

/**
 * @program: Spring_day01_01_IOC入门程序
 * @description:  InitializingBean作用：定义了每个bean的初始化前进行的动作，属于非统一性动作，用于对Bean进行创建前业务处理
 * @author: xuejingjing
 * @create: 2021-08-02 15:22
 **/

//多实现,这个接口只用在这个地方，就是说只有这个类能用了。
public class EquipmentDaoImpl implements EquipmentDao, InitializingBean {
    public void save() {
        System.out.println("equipment dao running....");
    }

    public void afterPropertiesSet() throws Exception {
        System.out.println("EquipmentDaoImpl......bean...int......");
    }
}
